package com.ctaa.ctaa.mapper;

import com.ctaa.ctaa.pojo.UserInfoPojo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {

    //通过账号密码查询用户信息
    UserInfoPojo queryUserInfo(@Param("email") String email, @Param("password") String password);

    //通过邮箱查询用户信息
    UserInfoPojo queryUserInfoByEmail(@Param("email") String email);


    //增加用户信息
    Integer insertUserInfo(@Param("userName") String userName, @Param("password") String password,
                           @Param("email") String email, @Param("date") String date);

    Integer updatePassword(@Param("password") String password, @Param("email") String email);

}
